package ch9.ex21;

import static ch9.print.Print.*;

interface I {
	void f();
	void g();
	class Nested{
		static void call(I impl) {
			println("Calling f()");
			impl.f();
			println("Calling g()");
			impl.g();
		}
	}
}

public class InterfaceWithNested2 {

	public static void main(String[] args) {
		I impl = new I() {
			public void f(){}
			public void g(){}
		};
		I.Nested.call(impl);
	}

}
